<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<meta name="viewport" content="width=1000, initial-scale=1.0, maximum-scale=1.0">
	    <!-- Loading Bootstrap -->
	    <link href="Public/Admin/Flat/dist/css/vendor/bootstrap.min.css" rel="stylesheet">
	    <!-- Loading Flat UI -->
	    <link href="Public/Admin/Flat/dist/css/flat-ui.css" rel="stylesheet">
	    <link href="Public/Admin/Flat/docs/assets/css/demo.css" rel="stylesheet">
	    <link rel="shortcut icon" href="Public/Admin/Flat/img/favicon.ico">
	    <!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
	    <!--[if lt IE 9]>
	      <script src="dist/js/vendor/html5shiv.js"></script>
	      <script src="dist/js/vendor/respond.min.js"></script>
	    <![endif]-->
	</head>
	<body>
		<form action="" method="post">
		<table class="table table-hover">
			<!--<?php echo p($oldData['combine'])?>-->

			<tr class="active">
			  <th>货品ID</th>
			  <?php foreach ($arr as $v){?>
			  <th width="90"><?php echo $v[0]['taname']?></th>			  
			  <?php }?>
			  <td >库存</td>
			  <th >货号</th>
			  <th >操作</th>
			</tr>
			<tr>
				<td>编辑货品</td>
				<?php foreach ($arr as $v){?>
				<td>
					<select name="combine[]" id="">
						
						<option value="">请选择</option>
						<?php foreach ($v as $vv){?>
						<option value="<?php echo $vv['gaid']?>" <?php if(in_array($vv['gaid'], $oldData['combine'])): ?> selected <?php endif ?>><?php echo $vv['gtvalue']?></option>
						<?php }?>
					</select>
				</td>
				<?php }?>
				
				<td>
					<input type="text" name="inventory" value="<?php echo $oldData['inventory']?>">
				</td>
				<td>
					<input type="text" name="number" value="<?php echo $oldData['number']?>">
				</td>
				<td>
					<input type="hidden" name="goods_gid" value="<?php echo Q('get.gid')?>">
					<input type="hidden" name="glid" id="" value="<?php echo Q('get.glid')?>" />
					<input type="submit" value="保存编辑" class="btn btn-sm btn-warning"> 
				</td>
			</tr>
		</table>
		</form>
	</body>
</html>
